package m3d31;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

//字节流向字符流的桥梁  继承reader
public class nInputStreamReader {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("day02\\src\\m3d31\\m.txt"),
                "gbk");

        int len = 0;
        while((len = isr.read())!=-1){
            System.out.println((char)len);
        }
    }
}
